#coding=utf-8

from django.conf.urls import include, url
from  . import views

urlpatterns = [
    url(r'^$', views.index, name='index'),


    url(r'^gif/$', views.gif_page, name='gif'),
    # tag 匹配任意非空字符
    url(r'^gif_tag/(?P<tag>[\S]+)/$', views.gif_tag_page, name='gif_tag_page'),
    url(r'^gif/(?P<gif_id>[0-9]+)/$', views.gif_id, name='gif'),
    

    #url(r'^register/$', views.register, name='register'),
    #url(r'^login/$', views.log_in, name='login'),
    #url(r'^logout/$', views.log_out, name='logout'),
    url(r'^(?P<article_id>[0-9]+)/comment/$', views.comment, name='comment'),
    url(r'^(?P<article_id>[0-9]+)/keep/$', views.get_keep, name='keep'),
    url(r'^(?P<article_id>[0-9]+)/poll/$', views.get_poll_article, name='poll'),


    url(r'^(?P<article_id>[0-9]+)/$', views.article, name='article'),
    url(r'^article_tag/(?P<tag>[\S]+)/$', views.article_tag_page, name='article_tag_page'),

    url(r'^test/$',views.test, name='test'),



    



]
